com.atlassian.jira.rpc.soap.beans
Class RemoteWorklog

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.beans.RemoteWorklog
Direct Known Subclasses:
RemoteWorklogImpl

public class RemoteWorklog
extends java.lang.Object

Remote type for com.atlassian.jira.issue.worklog.Worklog of an Issue.


Field Summary
private  java.lang.String author
           
private  java.lang.String comment
           
private  java.util.Date created
           
private  java.lang.String groupLevel
           
private  java.lang.String id
           
private  java.lang.String roleLevelId
           
private  java.util.Date startDate
           
private  java.lang.String timeSpent
           
private  long timeSpentInSeconds
           
private  java.lang.String updateAuthor
           
private  java.util.Date updated
           
 
Constructor Summary
  RemoteWorklog()
          Contructs a RemoteWorklog with empty fields.
  RemoteWorklog(java.lang.String id)
          Contructs a RemoteWorklog with empty fields except the worklog id
protected RemoteWorklog(java.lang.String id, java.lang.String author, java.lang.String updateAuthor, java.util.Date created, java.util.Date updated, java.lang.String timeSpent, long timeSpentInSeconds)
          A protected contructor to allow JIRA code to set the read only and special fields.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAuthor()
           
 java.lang.String getComment()
           
 java.util.Date getCreated()
           
 java.lang.String getGroupLevel()
           
 java.lang.String getId()
           
 java.lang.String getRoleLevelId()
           
 java.util.Date getStartDate()
           
 java.lang.String getTimeSpent()
           
 long getTimeSpentInSeconds()
          Gets the time spent working on a worklog in seconds.
 java.lang.String getUpdateAuthor()
           
 java.util.Date getUpdated()
           
 int hashCode()
           
 void setComment(java.lang.String comment)
           
 void setGroupLevel(java.lang.String groupLevel)
           
 void setId(java.lang.String id)
           
 void setRoleLevelId(java.lang.String roleLevelId)
           
 void setStartDate(java.util.Date startDate)
           
 void setTimeSpent(java.lang.String timeSpent)
          Specifies a time duration in JIRA duration format, representing the time spent working on the worklog

NOTES : JIRA time durations are in the following format

minutes - eg 3m, 10m, 120m hours - eg 3h, 10h, 120h days - eg 3d, 10d, 120d weeks - eg 3w, 10w, 120w

 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

author

private final java.lang.String author

updateAuthor

private final java.lang.String updateAuthor

created

private final java.util.Date created

updated

private final java.util.Date updated

timeSpentInSeconds

private final long timeSpentInSeconds

id

private java.lang.String id

comment

private java.lang.String comment

groupLevel

private java.lang.String groupLevel

roleLevelId

private java.lang.String roleLevelId

startDate

private java.util.Date startDate

timeSpent

private java.lang.String timeSpent
Constructor Detail

RemoteWorklog

protected RemoteWorklog(java.lang.String id,
                        java.lang.String author,
                        java.lang.String updateAuthor,
                        java.util.Date created,
                        java.util.Date updated,
                        java.lang.String timeSpent,
                        long timeSpentInSeconds)
A protected contructor to allow JIRA code to set the read only and special fields.


RemoteWorklog

public RemoteWorklog()
Contructs a RemoteWorklog with empty fields.


RemoteWorklog

public RemoteWorklog(java.lang.String id)
Contructs a RemoteWorklog with empty fields except the worklog id

Parameters:
id - the id of the worklog
Method Detail

getTimeSpent

public java.lang.String getTimeSpent()
Returns:
the time duration in JIRA duration format, representing the time spent working on the worklog

getTimeSpentInSeconds

public long getTimeSpentInSeconds()
Gets the time spent working on a worklog in seconds.

Returns:
the time spent working on a worklog in seconds.

setTimeSpent

public void setTimeSpent(java.lang.String timeSpent)
Specifies a time duration in JIRA duration format, representing the time spent working on the worklog

NOTES : JIRA time durations are in the following format

Parameters:
timeSpent - time duration in JIRA duration format

getAuthor

public java.lang.String getAuthor()

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getCreated

public java.util.Date getCreated()

getGroupLevel

public java.lang.String getGroupLevel()

setGroupLevel

public void setGroupLevel(java.lang.String groupLevel)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getRoleLevelId

public java.lang.String getRoleLevelId()

setRoleLevelId

public void setRoleLevelId(java.lang.String roleLevelId)

getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date startDate)

getUpdateAuthor

public java.lang.String getUpdateAuthor()

getUpdated

public java.util.Date getUpdated()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object